import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './global.less'
// import 'normalize.css/normalize.css'
import "./style.css"
import router from "./router/index.js";
// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'element-plus/theme-chalk/dark/css-vars.css'
const app = createApp(App)
app.use(ElementPlus, {
    locale: zhCn,
})




const pinia = createPinia();
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import {createPinia} from "pinia";
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.config.warnHandler=()=>null;

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// import vue3videoPlay from "vue3-video-play"; // 引入组件
// import "vue3-video-play/dist/style.css"; // 引入css
// app.use(vue3videoPlay);
app.use(router)
app.use(ElementPlus)
app.mount('#app')
